import request from "@/utils/request";

export const getHomeBanner = () => {
	return request({
		url: "/banner",
		method: "GET",
	});
};

export const getPlayList = () => {
	return request({
		url: "/personalized",
		method: "GET",
	});
};

export const getSongLists = (id) => {
	return request({
		url: `/top/list?idx=${id}`,
		method: "GET",
	});
};

export const getDiscBanner = (limit) => {
	return request({
		url: `/top/album?offset=0&limit=${limit}`,
		method: "GET",
	});
};

export const getCommentList = (id) => {
	return request({
		url: `/comment/playlist?id=${id}`,
		method: "GET",
	});
};
